package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.dto.NursingProjectDto;
import com.zzyl.entity.NursingProject;
import com.zzyl.vo.NursingProjectVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.jmx.export.annotation.ManagedNotifications;

import java.util.List;

/**
 * @author yuxiangxun
 * @date 2024/8/21
 * @apiNote
 */
@Mapper
public interface NursingProjectMapper {
    /**
     * 护理项目分页查询
     * @param name
     * @param pageNum
     * @param pageSize
     * @param status
     * @return
     */
    public Page<NursingProjectVo> getByPage(
            String name,
            String pageNum,
            Integer pageSize,
            Integer status
    );

    /**
     * 新增护理项目信息
     * @param nursingProject
     */
    void insert(NursingProject nursingProject);

    /**
     * 回显数据 -> 根据id查询护理项目信息
     * @param id
     * @return
     */
    NursingProjectVo getById(Long id);

    /**
     * 修改护理项目
     * @param nursingProject
     */
    void update(NursingProject nursingProject);

    /**
     * 启用-禁用护理项目
     * @param id
     * @param status
     */
    void updateStatus(@Param("id") Long id, @Param("status") Integer status);

    /**
     * 根据id删除护理项目信息
     * @param id
     */
    void deleteById(Long id);
}
